Paravirtualise the CPUID instruction by forcing emulation with an invalid-opcode...
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 22 Mar 2006 18:05:50 +0000 (19:05 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 22 Mar 2006 18:05:50 +0000 (19:05 +0100)
commitc048a39db2e2f075050ba8797a4fbce34c3c9faa
tree084e1eea71cadb45b19e01023067b9d7675e4e8d
parent5f4d33b808ad08b3ac78ca7e0aac7ee9eb607efe
Paravirtualise the CPUID instruction by forcing emulation with an invalid-opcode prefix.
This allows to clear feature flags and hide unsupported features from guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/i386/kernel/cpu/common-xen.c
linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S
linux-2.6-xen-sparse/arch/x86_64/kernel/setup-xen.c
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/processor.h
linux-2.6-xen-sparse/include/asm-i386/mach-xen/setup_arch_post.h
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/msr.h [new file with mode: 0644]
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/setup_arch_post.h
xen/arch/x86/traps.c
xen/include/public/arch-x86_32.h
xen/include/public/arch-x86_64.h